<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-4">
        <div class="box box-success">
            <div class="panel-heading">
                站点配置
            </div>
            <div class="panel-body">

                <form id="update-form" role="form" data-toggle="validator" method="POST" action="{:url('general.site/update')}">
                    <input type="hidden" id="c-id" name="row[id]" value="{$siteInfo.id}"/>
                    <div class="box-body">
                        <h3 class="profile-username text-center">{$siteInfo.sitename}</h3>

                        <p class="text-muted text-center">{$siteInfo.sitename}</p>
                        <div class="form-group">
                            <label for="sitename" class="control-label">站点名称:</label>
                            <input type="text" class="form-control" id="sitename" name="row[sitename]" value="{$siteInfo.sitename|htmlentities}" disabled/>
                        </div>
                        <div class="form-group">
                            <label for="site_number" class="control-label">家园编号:</label>
                            <input type="number" class="form-control" id="site_number" name="row[site_number]" value="{$siteInfo.site_number|htmlentities}" data-rule="required;int"/>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-success">{:__('Submit')}</button>
                            <button type="reset" class="btn btn-default">{:__('Reset')}</button>
                        </div>

                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
